<?php defined('SYSPATH') OR die('No direct access allowed.');
foreach($categories as $category): ?>
	<!-- BEGIN CATEGORY ITEM -->
  <li class='category rounded'>
    <dl>
      <dt><?=html::anchor($basic_href.$category->id, $category->title);?></dt>
      <dd class="description">[ <?=$category->description?> ]</dd>
			<dd>
				<?=Kohana::lang('category.category_count')?>: <?=$category->category_count?> |
				<?=Kohana::lang('category.post_count')?>: <?=$category->post_count?> |
				<?=Kohana::lang('category.comment_count')?>: <?=$category->comment_count?>
			</dd>
		<? if ($moderators = $category->get_moderators(TRUE) AND count($moderators)>0):
			$link_list = array();
		?>
			<dd>
				<?=Kohana::lang('category.moderators')?>:
				<? foreach($moderators as $moderator):
				  $link_list[] = html::anchor(Router::uri('account', array('user'=>$moderator->id)), $moderator->username);
				?>
				<?endforeach;
					echo implode(", ", $link_list);
				?>
			</dd>
		<? endif;?>
    </dl>
		<? Event::run('forum.category.list', $category);?>
  </li>
	<!-- END CATEGORY ITEM -->
<? endforeach;?>
